package com.anfeng.cms.export;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 导出员工信息
 * @author 吴朋
 * @date 2019/7/16
 */
@Getter
@Setter
public class ExportEmployeeExcel {

    /**
     * 员工名
     */
    @Excel(name = "姓名", orderNum = "0")
    private String name;
    /**
     * 性别 （1 男 2 女）
     */
    @Excel(name = "性别", orderNum = "1", replace = {"男_1", "女_2"})
    private Integer gender;
    /**
     * 部门名
     */
    @Excel(name = "部门", orderNum = "2")
    private String deptName;
    /**
     * 岗位名
     */
    @Excel(name = "岗位", orderNum = "3")
    private String postName;
    /**
     * 工种名称
     */
    @Excel(name = "工种", orderNum = "4")
    private String jobName;
    /**
     * 员工编号
     */
    @Excel(name = "员工编号", orderNum = "5")
    private String empNo;
    /**
     * 入职时间
     */
    @Excel(name = "入职时间", format = "yyyy-MM-dd", orderNum = "6")
    private Date hireDate;
    /**
     * 工龄
     */
    @Excel(name = "工龄", orderNum = "7")
    private Integer workAge;

    /**
     * 在职状态
     */
    @Excel(name = "状态", orderNum = "8", replace = {"在职_1", "休假_2", "离职_3"})
    private Integer status;
    /**
     * 手机号
     */
    @Excel(name = "手机号", orderNum = "9", width = 16)
    private String mobile;
    /**
     * 证件号
     */
    @Excel(name = "证件号", orderNum = "10", width = 20)
    private String identityNo;

    ///**
    // * 是否禁用（1 正常 2 逻辑删除 禁用）
    // */
    //@Excel(name = "是否禁用", orderNum = "11", replace = {"正常_1", "禁用_2"})
    //private Integer state;
}
